corrected the erroneous method for bounding box