updates for regression in folding