fixing up Markov