only init if rows are valid