Finish newton's method