update function changes