rearrange some lines