updated ArrayMath