adding gem for search and necessary search method