improving .csv output