modify mainf.c