cuda stuff fixed