Dim=sum