update main.c on github.