update params of functions