change the way to parse the csv file