corrected the error messages