output changed -1 to 0 formatted to csv