update main2.cpp

few minor changes