fixing API with search term