re arrange packages