factoring out ParamHelper