changing to scalar scan instead of vector (float4 and double4)