test array pointers, bug fix