adding search flag.