handle root element