add grammar restriction