bug fix for calculating probabilities
histogram update
.