do more work about thread.