rearrange packages