modify pointer array