Rearrange the material