should `inv` be `r2ref`?