adjust the document.