moved grammar1 into grammar