Added update method
Added update method2