new parsing method for the csv file