added setParam function