modify initialize_y.c, merge the loop