change to update while threads are running