add Newtons method