fixed to_template.csv - indices are correct now