probabilities and weights