add newton method