some updates to the cuda file