added tc_set_old_func