fixed sumBy to not create an index
debugged and working
meh
fixed syntax error