update the documents.