edited main.c and main.h