deterministic percent refactor