recalculate sum when inverting scores