rearrange commands