rearrange the packages