trajectory visualization stuff