changed main.c