getting maxprobs and states