extract dimensions; implement overlaps