package rearrange