changing file collected to csv