added merge of close buckets