updating grammar file format