rearrange a few lines