modified the document structure