update thread.