cuda improvements