refactor
recycle typed array