add template for duplicates records