updating synch and thread