 	}
 
 	// process the data
-	int x = 0;
+	long x = 0;
 	for (x = 0; x < byteToProcess; x++) {
 
 		// records

	}

	cudaFree(d_data);

	error = freeCsvData(raw_csv->data);
	checkError(error, "call to cudaFree(raw_csv->data)" );

	//-----------------------------------------------------------------------------
	//-- Allocate space to hold the record starting point


	CUDA_TRY( cudaMallocManaged ((void**)&raw_csv->recStart,(sizeof(long) * (raw_csv->num_records + 1))) );

	CUDA_TRY( cudaMemset(raw_csv->recStart, 		0, 		(sizeof(long) * (raw_csv->num_records + 1))) );
	CUDA_TRY( cudaMemset(raw_csv->d_num_records,	0, 		(sizeof(long) )) ) ;

