removed thresholdw_tol entirely