changed the exception messages