removed filter, just used the filter from java funk in the sum method
reformatted