added cuda helpers