update packing method