now stops searching when target found