loading data from csv file for template code