replace rows with rowt