debugging my use of curand