working on markov