 
 	fftsize = 4096;
 	int n1[] = {fftsize};
-	if (cufftPlan1d(&fwd_plan_4k, 4096, CUFFT_R2C, 64) != CUFFT_SUCCESS){
-		fprintf(stderr, "CUFFT error: 4k Plan creation failed");
-		return -2;	
-	}	
 
 	if (cufftPlanMany(&fwd_plan_4k,
 					  1, // 1d transform

	for (int i = 0; i < 100; i++) {
		if (cufftExecR2C(fwd_plan_2k, (cufftReal*)d1, (cufftComplex*)d1_complex) != CUFFT_SUCCESS){
			fprintf(stderr, "CUFFT error: ExecR2C 2K Forward failed");
			return -4;	
		}
	}


	for (int i = 0; i < 100; i++) {
		if (cufftExecR2C(fwd_plan_4k, (cufftReal*)d2, (cufftComplex*)d2_complex) != CUFFT_SUCCESS){
			fprintf(stderr, "CUFFT error: ExecR2C 4K Forward failed");
			int myErr = err;
			err = err -1;
			return myErr;	
		}
	}

