added conditional probabilities