prevent duplication of template values