destroy trajectory optimization functionality