add a threshold