fixed the threads