edited the exception message to be helpful