minor change
cf threshold logic change