updated the calculation of the diversity index, excluding the others group