using bundleObj.template instead of templates