changes in newmain class