tried to fix pinfo.c