callback API works with histograms