updates to csv writter to reflect new sample object.