iterative threshold fold option