add array.reduce