added check_histograms