changes to algs