modified algs