updated importCSV method