alg improvements