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