change logic of probability table