finished update method