fixing of main.c