rearrange spaces