added f0 alg