improve structure of document