I'm dumb.  iterating over files lines error fixed