a update for main.c