unique lines function