merge template