pt.h and pd.h modified