Upgrading grammar