renamed remove() to next() and updated the documentation