changed the error messages