zscale was miscalculating rms