add PatternRecognition