tweek doSearch only if criteria