Total least squares snippet added