fixed problem in acquiring pts. of newton's method