added next() functionality; uprev