added log probabilities