replaced a few grammars with RecognitionHistory