initial parse tree cleanup