tested resizeBoxesToCircles