working markov