Improvement for fold method