tweeked how probabilities are calculated to be more in line with add-one smoothing