make some alg clear