p2 alg without bp