fix rr deprecation warning