debugging compute_bbox