remove use of typed arrays, WIP