Don't bother scaling before calling xyzunit(). Conceptually, this should be done: compute the mean, then xyzunit() it. But, except for scaling by zero or numerical issues, xyzunit()'s output is independent of scaling its input.