cleaning up the error handling