fix reduce
add to-array