added update method in level