do not throw IllegalArgumentException in two cases