generator is killable now so looping stops