cuda not quite working