template merged