add nextitem method