correct no of neighbors in legend for k =6