added for-loop to insert sequences in the whole line, not just the first sequence of each line