modifying update method signature