minor tweaks to threshold