put the lines read var back in the script

i think now it should work fine - i don’t know why i thought it needed
to be static.