add doctree