next() looks okay, now for prev()