update to the document