solved bounding box problem