rearrange the skeleton