corrected error messages