changes for including total field in csv write