subtracted small boxes from large boxes to generate frame