learnigh algorithm updated