FAIL-SAFE FUNCTION