add packing methods