polish the code, add pointer_array_2.