getting histograms to work