modify "update" method