added in overloaded method for update