injecting template