formatted doc into list form