removed unused stuff from main.c