adds syncthreads also into ex. 8