validator added, newton alghoritm added