adding old buckets algorithm