write Buckets::nearest