add namespaces to elements