dried up the error handling