edited main.c