added copy_rows