refactored for one CSV read