updated algs