make it work with typed arrays