fix with_rr deprecation warning