optimised Sum