notes on templates