 		}
 	
 		
-		c_err = cudaMemcpy(&votes, d_votes, maxLines*sizeof(int),
+		c_err = cudaMemcpy(votes, d_votes, countlines*sizeof(int),
 				cudaMemcpyDeviceToHost);
 		if(c_err != cudaSuccess)
 		{

		const int index = atomicAdd(&g_counter_lines,1);
		if(index < maxLines)
		{
			printf("index Value - %d \n", index);
			printf("Current Votes - %d \n", curVotes);
			printf("radius %f and angle %f \n", radius, angle);
			*(lines + index) = make_float2(radius, angle);
			*(votes + index) = curVotes;

		}

{
		/*definr threshold*/
		
		const int threshold = 39;

		unsigned char* gimage;	
		unsigned int* glist; 
