change to the prev-current-next structure