added searchPattern.c