update to plotDistr.cc