actually use kill threshold variable