added vertical markovization