corrected error reporting