debuging how to select two nonterminals