template set method