adding histograms