further cleaning of markov