change to plot histograms