modified the error messages