fold rearrange