csv output working