adds closing tag