cleaning up nonterminal node AST base