add get Buckets func