fixing main.c