clean old markov functions and examples that use it