making ParamChecking more global