rearrange material