changed RuntimeException to InvalidArgumentException