added templating functions