alert to throw
change Array to TypedArray
patch