using `headerNames[j]` works, but I think it would be more succint to use `header`, which was set on ln 311.