Tried to debug two next() and two prev() methods