added selectedSums