fit bounding box in two steps rather then one, seems to fix the cpu bug