update method implemented