added update method 2/2