write boxes finished