add hazard and goal