if result is array, sum it