more refactoring of trajectory
fixed v3array deepcopy error