ensuring log_probabilities exists