adding template instances