Updating the documents