removing duplicated lines