detecting the proper hierarchy to get  a fix on the bottom edge of the cell