bbox_volume function