finished integrating histograms