corrected error messages.