DEL: minimize main.cpp