update histograms