kill looped code