more alg stuff