simplify grammar