cause of the new method to stop the threads