rearrange chunks