handle bounding boxes