work on find_sum
refactor