what seems to be a fix (use inverted .reg & .pivot) + some clarifying comments