updated error message
fixed problems