format output for pp and csv