rafactors creation of rows