converting dscalar to scalar. now works on GPU