replaced root_tag with tag