removed unnecessary code from search files and added only one method for
search.