update again: two algos are working