refactored CSV