buckets code