added global variables into doctree