add docid to each line