update document and version