modify pr2 and sample