initialize the document