logic to add doc id's from text file I: field