self-nesting elements should not come at the very end
issue to be solved
adding compacted text