updating for changes in ddogleg