generating .y file