update grammar