adds dist and cluster