updated PatternFinder