added structure of document