updating trajectory saving features for summer project