rearrange the content