added in delete rows function