move kill to loop