fixed csv export portion