mark_rows function

Return marked rows