changed to active threads in TG