             int localidx = idx_body * nmax + start * blockDim.x + threadIdx.x;
             if (localidx < nmax * n_bodies && start * blockDim.x + threadIdx.x < nmax)
                 {
-                unsigned int idx_particle_index = tex1Dfetch(rigid_data_particle_indices_tex, localidx);  
+                unsigned int idx_particle_index = d_rigid_particle_idx[localidx];
                 if (idx_particle_index != INVALID_INDEX)
                     {
-                    float4 particle_pos = tex1Dfetch(rigid_data_particle_pos_tex, localidx);
-                    float4 particle_oldpos = tex1Dfetch(rigid_data_particle_oldpos_tex, localidx);
-                    float4 particle_oldvel = tex1Dfetch(rigid_data_particle_oldvel_tex, localidx);
-                    
-                    float4 pos = tex1Dfetch(pdata_pos_tex, idx_particle_index);
-                    float massone = tex1Dfetch(pdata_mass_tex, idx_particle_index);
-                    float4 pforce = tex1Dfetch(net_force_tex, idx_particle_index);
+                    float4 particle_pos = d_rigid_particle_dis[localidx];
+                    float4 particle_oldpos = rdata_oldpos[localidx];
+                    float4 particle_oldvel = rdata_oldvel[localidx];
+                    
+                    float4 pos = pdata_pos[idx_particle_index];
+                    float massone = d_particle_mass[idx_particle_index];
+                    float4 pforce = d_net_force[idx_particle_index];
                     
                     // compute ri with new orientation
                     float4 ri;

        dim3 particle_threads(block_size, 1, 1);
        
        gpu_nve_rigid_step_one_particle_sliding_kernel<<< particle_grid, particle_threads >>>(pdata.pos, 
                                                                     pdata.vel, 
                                                                     pdata.image,
                                                                     rigid_data.particle_oldpos,
                                                                     rigid_data.particle_oldvel,
                                                                     rigid_data.virial,

                                                                     nmax,
                                                                     box, 
                                                                     deltaT);
                                                        
        }
    
    return cudaSuccess;
