bounding box validation