simplify alt grammar