added cleanup parse tree
match by starting symbol