initial revision
fixed an incorrect error message