handle IllegalArgumentException