added dynamic array pointers