removing repetitions