[replace] using Tawti's version for PYR rotation