added spasming for markov generator