store probabilities in log space