more template code