update to return object