change structure of doc