adjust doc structure