Simplify `next` and `prev` methods