seperated pthreads