implemented previousRecord() method