update base grammar