added rows function