merge main.c