update SearchPattern()