working on loadData for csv file