modify PNRP.cpp