started update() function