replacing some rows