final version of grammar is almost done