fixing nvcc comaptibility