removed unneeded syncthreads