isEmergency moved up