make it easier to catch stopiteration