src: sum: improved output