add newton and approximate newton to