first cut of pattern searcher