rename ptr_index, ptr_unindex