update method added