probability table generation updated further