removed the pthreads barrier