minors
newton methdos as a new function