alg_final finished