working markov output