duplicate snippet