 	int newPath;
 	int newPred;
 
-	int tx = threadIdx.x; 
-	int ty = threadIdx.y;
-	
-	int v1 = BLOCK_SIZE * block + ty;
-	int v2 = BLOCK_SIZE * block + tx;  
+	const int tx = threadIdx.x; 
+	const int ty = threadIdx.y;
+	
+	const int v1 = BLOCK_SIZE * block + ty;
+	const int v2 = BLOCK_SIZE * block + tx;  
 
 	const int cell = v1 * pitch + v2;
 

	}
	
	const int cell_current = v1 * pitch + v2;

	if (v1 < n && v2 < n)
	{
		current_d[ty][tx] = d[cell_current];

			}
		}
	}
	
	 // Synchronize to make sure the all value are loaded in virtual block
	__syncthreads();

