Get rows inner loop