making sure probs sum to 1