gets rows on init, restructuring