rearrange instructions