pad_array complete