add condition histograms support