diff --git a/src/radix_sort_par3.cu b/src/radix_sort_par3.cu
index 942a286d382d3b458de89904b82b0cd3b3f41112..463fd282a83909a0adddbc6a7440d20644395b07 100644
--- a/src/radix_sort_par3.cu
+++ b/src/radix_sort_par3.cu
@@ -14,7 +14,7 @@ int getMax(int arr[], int n)
     return mx; 
 } 
   
-__global__ void storeCount(int *count, int *arr, int n){
+__global__ void storeCount(int *count, int *arr, int n, int exp){
     for (int i = 0; i < n; i++) 
         count[ (arr[i]/exp)%10 ]++;
 }
@@ -34,7 +34,7 @@ void countSort(int arr[], int n, int exp)
     cudaMemset(count,0,sizeof(int)*10);
   
     // Store count of occurrences in count[] 
-    storeCount<<<1,32>>>(count,d_arr,n); 
+    storeCount<<<1,32>>>(count,d_arr,n,exp); 
   
     // Change count[i] so that count[i] now contains actual 
     //  position of this digit in output[]