in_thread
sub_repeat