print line by line and no repeats