update pmt.cpp