refactored rc