change Exception to RuntimeError