finish the hazard Detector