extracted the histograms