rearrange and detail