changed argument from ... to x in the sum function and updated the package