changed threshold setter functions to combined set/get functions