added thinning function (get the list of keys for the bucket)