modify RL line grammar