wrote method to separate CSV file