change params format
fix the packing of params struct