updating grammar