update main.c twice