added statcalc in all places where histogram appears