first step of parse tree
ptree works for non terminals