update function param