break loop when hit is found