modify the document