made changes update method