add update method