modify sample path