histograms now functional