make update a method