switched to log probabilities, math range error