change method names add sum method array