simpler keying function for buckets