begin to calculate bounding boxes