2 indep. functions that  account for curve. (bugs)