thread nesting removed