solved problem with is_dist_one function