removed unnecessary stuff from main.c