changed csv parse to for each