sum behaviour fixes