handle case where all weights are equal