update the iocsv function block