updating threads