store input to csv