change cuda code