CSV export method is work in progress(has error)