put several debug code for P_t_index() ... well.