working on markov stuff