adding template in