rewrote stuff to take pointers, fixed arena size