update method working