remove thread var