changed loadedBuckets to waiting buckets