passing paramteres in creation of template