added pattern comparason plot