fixing printf in main.c