fix return void error in new CSV function