Updating a private member of doc