debug patternRecog