added update method