change document structure