un/packing correct data properly