method name error in update fixed