diff --git a/src/life.cu b/src/life.cu
index abab15650c861306dd43a2f294c2ecf63eafd7eb..da0ccc5fede244393443cd492cb169413b37af56 100644
--- a/src/life.cu
+++ b/src/life.cu
@@ -38,16 +38,6 @@ __device__ int life_destiny(int* src, int x,int y,int i, int j){
     }
 }
 
-void print_array(int* array, int nRows, int nCols) {
-  for (int i = 0; i < nRows; i++) {
-    for (int j = 0; j < nCols; j++) {
-      printf("%d, ", array[i*nCols + j]);
-    }
-    printf("\n");
-  }
-}  
-
-
 __global__ void dummy_kernel(int* src, int* dest,int N, int M)
 {
   int i = blockIdx.x * blockDim.x + threadIdx.x;
diff --git a/src/main.cu b/src/main.cu
index 81f94af01ef6fb23784213aab35544c71a2bef42..0cfc3dd0290af03ccc04ab2fc58ca468260d9648 100644
--- a/src/main.cu
+++ b/src/main.cu
@@ -21,6 +21,16 @@ void write_pbm(int* array, int nRows, int nCols, const char *filename) {
     fclose(f);
 }
 
+
+void print_array(int* array, int nRows, int nCols) {
+  for (int i = 0; i < nRows; i++) {
+    for (int j = 0; j < nCols; j++) {
+      printf("%d, ", array[i*nCols + j]);
+    }
+    printf("\n");
+  }
+}  
+
 int main() {
   int H = 100;
   int W = 100;