add replay trajectroy method