ensures more robust checking in error handling process