added stats, adding histograms