refactored-code