added update method
added update method