create structure for doc