allow setting a threshold