added nearest-neighbor model