rearrange doc