some huge changes for nested divs