probability histograms reworked