introduce _find_row_or_col method