trying to discriminate zero from non-zero in the node distance