continued bounding box implementation