changed the search task to use the TaskCallback