updating grammar slots