modified .y file to make step4 easier