update the linear polyfit