change rail to line