templating working onw