changes made to make csvToJson dynamic