templating structure conditional