removes obsolete divs