change the maximum number of Markov chain