added hazard control to pipeline