updated the deprecated method for CSV parsing