added generate csv function