repeat until getting the row