return object after update