diff --git a/metadata_xml/iso19115-cioos-template/main.j2 b/metadata_xml/iso19115-cioos-template/main.j2
index 6774ea5..ca0004f 100644
--- a/metadata_xml/iso19115-cioos-template/main.j2
+++ b/metadata_xml/iso19115-cioos-template/main.j2
@@ -675,9 +675,7 @@
{% endif %}
{% endfor %}
-
{% for distribution in record['distribution'] %}
-
@@ -701,14 +699,12 @@
{% endfor %}
-
-
{% endif %}
- {% for history in record['metadata']['history'] %}
+
+ {% for lineageStep in record['metadata']['history'] %}
- {% for lineageStep in record['metadata']['history'] %}
{{- bl.bilingual('mrl:statement', 'statement', lineageStep) -}}
{# scope: CIOOS core mandatory #}
@@ -809,7 +805,6 @@
{% endfor %}
- {% endfor %}
{% endfor %}