changed text to csv