modify the return statement of the patternMatch method in SingletonPatternMatcher