changed what the illegalStateException should print out