implemented previous() and next() method