rearrange figures