change railing to type from reference