add array and update grammar