updated error messages.