fixing the fundamental mistake of assigning next to nextItem before it's reversed