added updateParamStuff