upgrade gramatic