modified comparison in grammar