change p0table struct as suggested by ck