catch illegalStateException