update_rows re-implemented
update_rows re-implemented
tested merge functions