adding total histograms