draw trajectory