fixed wrong file name argument for search method