adding modified grammar