new version of histogram with working streaming