only one loop over the lines in the file