updated the dist for hiding labels