updated for nextItem