modify initialize_y.c, merge the for loop