Rearrange some lines