adding Update method