 }
 // middleware to handle gpu core and thread usage
 void middleware(PIXEL* original, int rows, int cols, int *a){
+    int sizePix = sizeof(PIXEL);
     int numThreads = 1024;
     int numCores = original*sizeof(PIXEL*) /  numThreads + 1;
 

        int *a;
        PIXEL *uncompressed, *compressed;
        readFile("example.bmp", &row, &col, &uncompressed);
        middleware(uncompressed, row, col, a);

        fgets(image_name, 256, (FILE*)inputfile);
    }


#define TRUE = 1

/*
//cuda function
__global__ void compressor(PIXEL * orig, int row, int col){
    int i = blockIdx.x * blockDim.x + threadIdx.x;
