changed error condition and error message