convert to linear space