refactored fatal