refactored cod