changed getParamCount