removed pthreads