plot2.cc modified