updated the object with new values