minor tweak to threshold
set the desired function parameters to ensure accuracy