switch over to array for performance and javascript compatibilitiy
make tests work again