changed thread struct