added condition on cufft