removed throwing IllegalStateException