correction of array pointers