add turn-off threshold
add separate "compare" example