fixed some renaming _alg