updates for the multithreading