removing duplicate snippet