removing further pointer abuse in Grammar