switch order of kill and delay
loop update