delete TerminalNode class