more work on Gauss-Newton