A schematic of the hypothetical, episode-specific neuronal trajectories of an individual trial type (red lines: VD subtask, green lines: SA subtask, blue lines: DA subtask; red dashed lines: same origin and destination) in the first to third PC space. As expected from the place field properties, the same right-to-left/left-to-right journey produces a similar neuronal trajectory at the ensemble level. However, the trajectories are shifted between the task-demands in certain spaces (PC2 in this schematic), thereby generalizing a journey over task-demands. When the future direction changes from the expectation at the decision point, the trajectory shifts to the corresponding one (red dashed lines, VD2, VD4). The trajectory shift can be triggered not only by external events (the light-cues) but also by internal events (expected future direction) before the behavioral choices