added get-next-row for systematically exploring all rows