csvToData finalized