change root element to document