debug alg std_function