added logic to load csv file