changing to csv training