updating after threads terminates