updating the grammar to the latest version