handling negatives, array_sum_key