taked over the IllegalargumentExceptions cos sonar sonar sazs that it is
unnecessary