update function call