fix: RPY calculations