intro some templating function