Rearrangement of packages