update update method