no need for loop, reduce is fine here