added syncthreads