delete duplicated lines that do the same thing