working out the probability, not done or functional yet