add wrapper for .next() and .each()