script to get data from csv file