use builtin sum function