changed bounding box calculation to match MX.