pieces of curve fitting