template enhancement