changed probabilities to decision function