working search with map