document structure reorganization