mod markov