algorith added