changed bsearch to fileSearch