rearrange rail