update thread tutorial