maps search function implemented