insert least-squares