adding progress of newmain.cc