inherit to thread