cleaned unnecesarry stuff from main.cc