added code for reading csv file