handleDist validation