bug fix - adding histograms