simplify pack_params