Update main.cpp

drop obsolete stuff