improve transferRowsCopy