rearrange into neater layout