updated for algo = 0