a neighbor is used for avoiding