adjust number of neighbors