update method update