hazard detection