       int direCount = 0;
 
 
-      acc_i = approximate_gravity<blockDim2, 0>( DIM2x, DIM2y, tid, tx, ty,
+      acc_i = approximate_gravity<blockDim2, 0>( DIM2x, DIM2y, tx, ty,
           body_i, pos_i, group_pos,
           eps2, node_begend,
           multipole_data, body_pos,

          __syncthreads();

          // step 2:
          const int nl = inclusive_segscan_array<DIM2>(&body_list[n_direct], nb, tid);
          nb = directM[prefix[nl_pre + nl - 1]];                       // number of bodies stored in these leaves
          __syncthreads();



/****** KEPLER __shfl prefix sum ******/

#if 1  /* uses inlined assembly */
__device__ __forceinline__ uint shfl_scan_add_step(uint partial, uint up_offset)
{
  uint result;
