trying to fix the error handling