update sample code to make duplicate survey