update packing-algorithm