resolved templating problem