change play trip algorithm