correct bounding box calculation for bottom rows
more log statements to separate method