condensed template code