cleanup duplicated lines