curve-fitting: added