add markov chain